<?php
session_start();
error_reporting(E_ALL);
define('RADF','true');

require "system/core/config.php";
require "system/core/pdo.php";
require "system/core/radt.php";
require "system/libraries/simple_html_dom.php";


$script_name=$_SERVER['SCRIPT_NAME'];
$request_uri=$_SERVER['REQUEST_URI'];

//$BASE_PATH=curPageURL();

$BASE_PATH="http://".$_SERVER['SERVER_NAME'].str_replace("/index.php","",$_SERVER['SCRIPT_NAME']) ;//"http://localhost/radf";
//echo $BASE_PATH;
//var_dump($_SERVER);


$script_bits=explode('/',$script_name);

$request_bits=explode('/',$request_uri);


//var_dump($script_bits);
//var_dump($request_bits);

$RADF_OBJ=new radt();
$RADF_OBJ->run_controller();


?>